import axios from '@/utils/request'

export const getUserChannels = () => {
  return axios({
    url: '/v1_0/user/channels'
  })
}
export const getAllChannels = () => {
  return axios({
    method: 'get',
    url: '/v1_0/channels'
  })
}

export function setUserChannels(channels) {
  return axios({
    method: 'PATCH',
    url: '/v1_0/user/channels',
    data: {
      channels
    }
  })
}
